package hk.edu.uic.hejing.service.impl;

import hk.edu.uic.hejing.entity.Rule;
import hk.edu.uic.hejing.mapper.RuleMapper;
import hk.edu.uic.hejing.service.IRuleService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hejing
 * @since 2017-05-30
 */
@Service
public class RuleServiceImpl extends ServiceImpl<RuleMapper, Rule> implements IRuleService {

    @Override
    public List<Rule> getRulesByRid(int rid) {
        return baseMapper.getRulesByRid(rid);

    }
}
